package com.hnn.learn.dubboprovider.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hnn
 * @version 1.0
 * @date 2023-10-27 15:19
 */
@RestController
public class HelloController {

    @PostMapping("/hello/{word}")
    public String hello(@PathVariable("word") String word) {
        if ("kk".equals(word)) {
            throw new RuntimeException("eeeeeeee");
        }
        return "hello " + word;
    }
}
